package com.create.vip.mall.spu.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商品表
 *
 * @TableName sku
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "spu")
public class Spu implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * SPU名
     */
    private String name;
    /**
     * 简介
     */
    private String intro;
    /**
     * 排序
     */
    @TableField(value = "brand_id")
    private Integer brandId;
    /**
     * 一级分类
     */
    @TableField(value = "category_one_id")
    private Integer categoryOneId;
    /**
     * 二级分类
     */
    @TableField(value = "category_two_id")
    private Integer categoryTwoId;
    /**
     * 三级分类
     */
    @TableField(value = "category_three_id")
    private Integer categoryThreeId;
    /**
     * 图片列表
     */
    private Integer images;
    /**
     * 售后服务
     */
    @TableField(value = "after_sales_service")
    private Integer afterSalesService;
    /**
     * 介绍
     */
    private String content;
    /**
     * 规格列表
     */
    @TableField(value = "attribute_list")
    private String attributeList;
    /**
     * 是否上架
     */
    @TableField(value = "is_marketable")
    private String isMarketable;
    /**
     * 是否上架
     */
    @TableField(value = "is_delete")
    private String isDelete;
    /**
     * 是否上架
     */
    private String status;

}
